import Vue from 'vue' //默认导入的是 runtime-vue
import VueRouter from 'vue-router'
Vue.use(VueRouter);

import Hello from '../component/HelloWorld.vue'
import Index from '../component/Index.vue'

const routes = [
    {
        path:'/hello',
        component:Hello
    },
    {
        path:'/index',
        component:Index
    }
];

const router = new VueRouter({
    routes
})

export default router;
